import request from '@/utils/request'

// 查询分账处理列表
export function listAccounts(query) {
  return request({
    url: '/washer/accounts/list',
    method: 'get',
    params: query
  })
}

// 查询分账处理详细
export function getAccounts(divideAccountsId) {
  return request({
    url: '/washer/accounts/' + divideAccountsId,
    method: 'get'
  })
}

// 新增分账处理
export function addAccounts(data) {
  return request({
    url: '/washer/accounts',
    method: 'post',
    data: data
  })
}

// 修改分账处理
export function updateAccounts(data) {
  return request({
    url: '/washer/accounts',
    method: 'put',
    data: data
  })
}

// 删除分账处理
export function delAccounts(divideAccountsId) {
  return request({
    url: '/washer/accounts/' + divideAccountsId,
    method: 'delete'
  })
}
